@charset "UTF-8";
/* -------------------------------------------------
 * overlay css for dialog panel
 * ------------------------------------------------- */


/* @import url(http://fonts.useso.com/css?family=Lato:300,400);
@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: 'codropsicons';
	src:url('../fonts/codropsicons/codropsicons.eot');
	src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
		url('../fonts/codropsicons/codropsicons.woff') format('woff'),
		url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
		url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
} */

/* Overlay style */
.overlay {
	position: fixed;
	z-index: 9999;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(153,204,51,0.9);
	.overlay-close {
		width: 30px;
		height: 30px;
		position: absolute;
		right: 0;
		top: 0;
		background-color: transparent;
		overflow: hidden;
		border: none;
		outline: none;
		z-index: 100;
	}
	.model{
		position: relative;
		height: 100%;
		width: 100%;
		display: table;
		text-align: center;
		vertical-align: middle;
	}
}

/* Effects */
.overlay-genie {
	background: transparent;
	visibility: hidden;
	opacity: 0;
	-webkit-transition: opacity 0.3s 0.2s, visibility 0s 0.6s;
	transition: opacity 0.3s 0.2s, visibility 0s 0.6s;
	&.open {
		visibility: visible;
		opacity: 1;
		-webkit-transition: opacity 0.3s;
		transition: opacity 0.3s;
	}
	svg {
		position: absolute;
		top: 0;
		left: 0;
	}
	.overlay-path {
		// fill: rgba(0,135,226,0.8);
		fill: rgba(0,0,0,0.5);
	}
}

.overlay-genie{
	.model{
		opacity: 0;
		-webkit-transform: scale(0) translateY(48%);
		transform: scale(0) translateY(48%);
		-webkit-transition: opacity 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
		transition: opacity 0.3s 0.3s, transform 0.3s 0.3s;
	}
	.overlay-close {
		opacity: 0;
		-webkit-transition: opacity 0.3s;
		transition: opacity 0.3s;
	}
	&.open .model,
	&.open .overlay-close {
		opacity: 1;
		-webkit-transition-delay: 0.3s;
		transition-delay: 0.3s;
	}


	&.open .model{
		transform: scale(1) translateY(0%);
		-webkit-transform: scale(1) translateY(0%);
		-ms-transform: scale(1) translateY(0%);
	}

	&.close{
		.model,.overlay-close {
			-webkit-transition-delay: 0s;
			transition-delay: 0s;
		}
	}
}
@media screen and (max-height: 30.5em) {
	.overlay .model {
		height: 70%;
		font-size: 34px;
	}
}


html:not(.lt-ie9){
	.model-box{
		position: absolute;
		font-size: 16px;
		display: table-cell;
		overflow: visible;
		vertical-align: middle;
		width: 100%;
		height: 100%;

		-webkit-transform-style: preserve-3d; 
		-moz-transform-style: preserve-3d;
		-ms-transform-style: preserve-3d;
		-o-transform-style: preserve-3d;
		transform-style: preserve-3d;
		-webkit-transition: -webkit-transform .4s;
		-webkit-perspective-origin: 0 0;
		-moz-perspective-origin: 0 0;
		-ms-perspective-origin: 0 0;
		-o-perspective-origin: 0 0;
		perspective-origin: 0 0;
		-webkit-transform: perspective(600px) rotateY(0deg);
		-moz-transform: perspective(600px) rotateY(0deg);
		-ms-transform: perspective(600px) rotateY(0deg);
		-o-transform: perspective(600px) rotateY(0deg);
		transform: perspective(600px) rotateY(0deg);
	
		transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
		&.turn-panel{
			-webkit-transform: perspective(600px) rotateY(180deg);
			-moz-transform: perspective(600px) rotateY(180deg);
			-ms-transform: perspective(600px) rotateY(180deg);
			-o-transform: perspective(600px) rotateY(180deg);
			transform: perspective(600px) rotateY(180deg);
			transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
		}
	}
	.panel,.panel-forget,.panel-ab{
		display: inline-block;
		width: 500px;
		background-color: $white;
		border-radius: 6px;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
		transition:transform 0.5s ease-out 0s,opacity 0.5s ease-out 0.2s;
		-webkit-transform:scale(1) translateY(0px);
		-moz-transform:scale(1) translateY(0px);
		-ms-transform:scale(1) translateY(0px);
		-o-transform:scale(1) translateY(0px);
		transform:scale(1) translateY(0px);
		opacity: 1;
		visibility: visible;
	}
	.panel,.panel-ab{
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		margin: auto;
	}
	.panel-ab{
		height: 350px;
		bottom: 15%;
		vertical-align: middle;	
		-webkit-backface-visibility: hidden;
		-moz-backface-visibility: hidden;
		-ms-backface-visibility: hidden;
		-o-backface-visibility: hidden;
		backface-visibility: hidden;
		-webkit-transform: translate3d(0, 0, 0) rotateY(0deg);
		-moz-transform: translate3d(0, 0, 0) rotateY(0deg);
		-ms-transform: translate3d(0, 0, 0) rotateY(0deg);
		-o-transform: translate3d(0, 0, 0) rotateY(0deg);
		transform: translate3d(0, 0, 0) rotateY(0deg);
	}
	.reversal{
		-webkit-transform: translate3d(0px, 0px, 0px) rotateY(180deg);
		-moz-transform: translate3d(0px, 0px, 0px) rotateY(180deg);
		-ms-transform: translate3d(0px, 0px, 0px) rotateY(180deg); 
		-o-transform: translate3d(0px, 0px, 0px) rotateY(180deg); 
		transform: translate3d(0px, 0px, 0px) rotateY(180deg);
	}
	.forget-box,.agree-box,.changeshortcut-box{
		overflow: hidden;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
	}
	.forget-box,.agree-box{
		opacity: 0;
		-webkit-transform: translateY(-100%);
		-moz-transform: translateY(-100%);
		-ms-transform: translateY(-100%);
		-o-transform: translateY(-100%);
		transform: translateY(-100%);
	}
	.changeshortcut-box{
		-webkit-transform: translateY(0%);
		-moz-transform: translateY(0%);
		-ms-transform: translateY(0%);
		-o-transform: translateY(0%);
		transform: translateY(0%);
	}



	.panel-forget,.panel-ab{
		padding-bottom: 40px;
	}
	.panel{
		height: 500px;
	}
	.panel-forget{
		width: 500px;
		height: 200px;
		position: absolute;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		margin: auto;
	}
	.showDown{
		-webkit-transform: translateY(0);
		-moz-transform: translateY(0);
		-ms-transform: translateY(0);
		-o-transform: translateY(0);
		transform: translateY(0);
		opacity: 1;
	}
	.hide{
		visibility: hidden;
		opacity: 0;
		-webkit-transform: translateY(-100%);
		-moz-transform: translateY(-100%);
		-ms-transform: translateY(-100%);
		-o-transform: translateY(-100%);
		transform: translateY(-100%);
	}
	.hideDown{
		visibility: hidden;
		opacity: 0;
		-webkit-transform: translateY(100%);
		-moz-transform: translateY(100%);
		-ms-transform: translateY(100%);
		-o-transform: translateY(100%);
		transform: translateY(100%);
	}
	.show{
		display: block;
	}
	.show-inb{
		display: inline-block;
	}
}

html.ie,html.ua_360,html.qq,html.liebao{
	.model-box{
		position: absolute;
		font-size: 16px;
		display: table-cell;
		overflow: visible;
		vertical-align: middle;
		width: 100%;
		height: 100%;
		transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
		&.turn-panel{
			-webkit-transform: perspective(600px) rotateY(0deg);
			-moz-transform: perspective(600px) rotateY(0deg);
			-o-transform: perspective(600px) rotateY(0deg);
			-ms-transform: perspective(600px) rotateY(0deg);
			transform: perspective(600px) rotateY(0deg);
			transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
			.panel-ab{
				opacity: 0;
				-ms-transform: rotateY(0deg) translateY(100%); 
				-webkit-transform: rotateY(0deg) translateY(100%);
				-moz-transform: rotateY(0deg) translateY(100%);
				-o-transform: rotateY(0deg) translateY(100%);
				transform: rotateY(0deg) translateY(100%);
			}
			.panel-ab.reversal{
				opacity: 1;
				-ms-transform: rotateY(0deg) translateY(0%); 
				-webkit-transform: rotateY(0deg) translateY(0%);
				-moz-transform: rotateY(0deg) translateY(0%);
				-o-transform: rotateY(0deg) translateY(0%);
				transform: rotateY(0deg) translateY(0%);
			}
		}
	}

	.panel-ab{
		width: 500px;
		height: 350px;
		bottom: 15%;
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		right: 0;
		margin: auto;
		vertical-align: middle;	
		-webkit-transform: translate3d(0, 0, 0) rotateY(0deg);
		-moz-transform: translate3d(0, 0, 0) rotateY(0deg);
		-ms-transform: translate3d(0, 0, 0) rotateY(0deg);
		-o-transform: translate3d(0, 0, 0) rotateY(0deg);
		transform: translate3d(0, 0, 0) rotateY(0deg);
		transition: transform 0.5s ease-in-out 0s, opacity 0.3s ease-in-out 0.2s;
		&.reversal{
			opacity: 0;
			-ms-transform: rotateY(0deg) translateY(-100%); 
			-webkit-transform: rotateY(0deg) translateY(-100%);
			-moz-transform: rotateY(0deg) translateY(-100%);
			-o-transform: rotateY(0deg) translateY(-100%);
			transform: rotateY(0deg) translateY(-100%);
		}
	}
}